const config = {
  development:{
    common: {url: "https://zzhuanle.kjtpay.com/zhuanle", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "http://10.255.12.5:7015/", header: {"Content-Type": "application/json"}},
    p2p: {url: "http://10.255.12.103:7012/", header: {"Content-Type": "application/json"}},
    fund: {url: "http://10.255.12.108:7017", header: {"Content-Type": "application/json"}},
    kjt: {url: "https://zm.kjtpay.com/", header: {"Content-Type": "application/json"}}
  },
  staging1:{
    common: {url: "http://zzhuanle.kjtpay.com/zhuanle", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "http://10.255.12.5:7015/", header: {"Content-Type": "application/json"}},
    p2p: {url: "http://10.255.12.103:7012/", header: {"Content-Type": "application/json"}},
    fund: {url: "http://10.255.12.108:7017", header: {"Content-Type": "application/json"}},
    kjt: {url: "https://zm.kjtpay.com/", header: {"Content-Type": "application/json"}}
  },
  staging2:{
    common: {url: "http://zzhuanle.kjtpay.com/zhuanle", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "http://10.255.12.5:7015/", header: {"Content-Type": "application/json"}},
    p2p: {url: "http://10.255.12.103:7012/", header: {"Content-Type": "application/json"}},
    fund: {url: "http://10.255.12.108:7017", header: {"Content-Type": "application/json"}},
    kjt: {url: "https://zm.kjtpay.com/", header: {"Content-Type": "application/json"}}
  },
  staging3:{
    common: {url: "http://zzhuanle.kjtpay.com/zhuanle", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "http://10.255.12.5:7015/", header: {"Content-Type": "application/json"}},
    p2p: {url: "http://10.255.12.103:7012/", header: {"Content-Type": "application/json"}},
    fund: {url: "http://10.255.12.108:7017", header: {"Content-Type": "application/json"}},
    kjt: {url: "https://zm.kjtpay.com/", header: {"Content-Type": "application/json"}}
  },
  production:{
    common: {url: "http://zzhuanle.kjtpay.com/zhuanle", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "http://10.255.12.5:7015/", header: {"Content-Type": "application/json"}},
    p2p: {url: "http://10.255.12.103:7012/", header: {"Content-Type": "application/json"}},
    fund: {url: "http://10.255.12.108:7017", header: {"Content-Type": "application/json"}},
    kjt: {url: "https://zm.kjtpay.com/", header: {"Content-Type": "application/json"}}
  },
  api:{
    common: {url: "/apiCommon/", header: {"Content-Type": "application/json", "X-KJT-Agent": "1234;3333;Android4.4;MIUI7.1;CMCC;Nexus5;001002;2.0.0;WIFI;-", "X-KJT-AUTH": "", "X-API-VER": "2.0"}},
    oss: {url: "/apiOSS/", header: {"Content-Type": "application/json"}},
    p2p: {url: "/apiP2P/", header: {"Content-Type": "application/json"}},
    fund: {url: "/apiFund/", header: {"Content-Type": "application/json"}},
    kjt: {url: "/apiKJT/", header: {"Content-Type": "application/json"}}
  }
}
const ex = process.env.VUE_ENV === "client" ? config.api : config[process.env.NODE_ENV ? process.env.NODE_ENV : 'development']
module.exports = ex;
